home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / slatex / slatex.uni < prev    next >
Text File  |  1993-11-07  |  846b  |  36 lines

  1. scheme=chez
  2.  
  3. # scheme is the name by which you call your Scheme.  Specify full pathname
  4. # if its location is not in your path.
  5.  
  6. slatexdir=/home/dorai/scm/slatex/sun4/
  7.  
  8. # slatexdir is the location of the file slatex.ss.  Final "/" must be
  9. # included.
  10.  
  11. latexdir=""
  12.  
  13. # latexdir can be set to "" if latex and tex are in your path.
  14. # If not, set it to the directory where the executables tex and latex 
  15. # reside -- remember to include final "/".
  16.  
  17. # do not modify below this line.
  18.  
  19. case $1 in
  20. *.tex) texfile=`basename $1 .tex`;;
  21. *) texfile=$1;;
  22. esac
  23.  
  24. rm -f .Z[0-9]*$texfile.ss .Z[0-9]*$texfile.tex \
  25.     .ZZ[0-9]*$texfile.ss .ZZ[0-9]*$texfile.tex
  26.  
  27. echo '
  28.   (load "'$slatexdir'slatex.ss")
  29.   (set! *texinputs* "'$TEXINPUTS'")
  30.   (process-main-tex-file "'$1'")
  31.   ' | $scheme
  32.  
  33. latex=`cat .Z0$texfile.tex`
  34.  
  35. $latexdir$latex $1
  36.